//
//  ChatTextTableViewCell.h
//  TIMChat
//
//  Created by AlexiChen on 16/3/10.
//  Copyright © 2016年 AlexiChen. All rights reserved.
//

#import "ChatBaseTableViewCell.h"

#import "MicroVideoPlayView.h"
#import "CustomerAVPlayerView.h"
#import "CYImageAvatarBrowser.h"
#import <Accelerate/Accelerate.h>
#import "ImageTitleButton.h"

@protocol messageDelete <NSObject>
@optional
- (void)messageImageOrVideoIndexPathRow:(NSIndexPath *)pathRow;


@end

//==============================================================
@interface ChatTextTableViewCell : ChatBaseTableViewCell
{
@protected
    UILabel     *_chatText;
    UIButton     *_chatBtn;
    UIImageView     *_seeImageview;
    
}

@end
//==============================================================
@interface ChatImageTableViewCell : ChatBaseTableViewCell
{
@protected
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
    
    
}

@end

//==============================================================
@interface ChatSoundTableViewCell : ChatBaseTableViewCell<AVAudioPlayerDelegate>
{
@protected
    ImageTitleButton *_soundButton;
    
}
@property (nonatomic,strong) AVAudioPlayer *audioPlayer;//播放器

@end
//==============================================================
@interface ChatFileTableViewCell : ChatBaseTableViewCell
{
@protected
    UIView          *_filePanel;
    UIImageView     *_fileIcon;
    UILabel         *_fileName;
    UILabel         *_fileSize;
}

@end
//==============================================================
@interface ChatVideoTableViewCell : ChatBaseTableViewCell
{
    MicroVideoPlayView  *_videoPanel;
}
@end
@interface ChatCustomTableViewCell : GodChatBaseTabCell
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
}

@end

@interface ChatCustomFreeImageViewCell : GodChatBaseTabCell
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
    
}
@property (nonatomic, strong) CYImageAvatarBrowser *cyImageAvatar;

@end
@interface ChatCustomFreeVideoViewCell : GodChatBaseTabCell<CustomerDelegate>
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
    CustomerAVPlayerView *customerView;
    
}

@end
@interface ChatCustomGiftViewCell : GodChatBaseTabCell
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
}

@end

@interface ChatCustomPayImageViewCell : GodChatBaseTabCell<CYImgeDelegate>
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UIImage     *_topImage;
    
    UILabel     *_remindLab;
    UIVisualEffectView *_effectView;
    int secondsCountDown; //倒计时总时长
    NSTimer *countDownTimer;

}
@property (nonatomic, strong) CYImageAvatarBrowser *cyImageAvatar;
@property (nonatomic, strong) UILabel *labelText;

@end
@interface ChatCustomPayVideoViewCell : GodChatBaseTabCell<CustomerDelegate>
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
    CustomerAVPlayerView *customerView;
    int secondsCountDown; //倒计时总时长
    NSTimer *countDownTimer;
    UIVisualEffectView *_effectView;

    
}
@property (nonatomic, weak) id <messageDelete>deletate;
@property (nonatomic, strong) UILabel *labelText;

@end
@interface ChatFaceToFaceViewCell : GodChatBaseTabCell<CustomerDelegate>
{
    UILabel     *_chatText;
    
    
}

@end

@interface ChatCustomShareViewCell : GodChatBaseTabCell
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
    UIImageView *_playImage;
}

@end
@interface ChatGirlInvitFaceViewCell : GodChatBaseTabCell
{
    UIView     *_chatView;
    UIImageView     *_chatImage;
    UILabel     *_remindLab;
    UIImageView *_playImage;
}

@end

//==============================================================

